package com.an.pay;

import com.an.pay.client.AliPayClient;
import com.an.pay.client.WxPayClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableAspectJAutoProxy
@Configuration
@ComponentScan("com.an.pay")
public class PayAutoConfiguration {


    @Bean
    public WxPayClient aliPayRequestClient(){
        return new WxPayClient();
    }

    @Bean
    public AliPayClient aliPayClient(){
       return new AliPayClient();
    }
}
